package cn.edu.hncj.Dao.Impl;

import cn.edu.hncj.Dao.UserDao;
import cn.edu.hncj.Domain.User;

import java.util.List;
import java.util.Map;
import java.util.Properties;

public class UserDaoImpl implements UserDao {

    private String name;
    private int age;

    private List<String> list;
    private Map<String, User> userMap;

    public void setList(List<String> list) {
        this.list = list;
    }

    public void setUserMap(Map<String, User> userMap) {
        this.userMap = userMap;
    }

    public void setProperties(Properties properties) {
        this.properties = properties;
    }

    private Properties properties;



    public void setName(String name) {
        this.name = name;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void save() {
        System.out.println("基本数据类型注入："+ name + "----" + age);
        System.out.println("list数据类型注入："+ list);
        System.out.println("map数据类型注入："+ userMap);
        System.out.println("properties数据类型注入："+ properties);
        System.out.println("save running...");
    }

    public void init() {
        System.out.println("初始化方法执行了");
    }

    public void destory() {
        System.out.println("销毁方法执行了");
    }
}
